import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 查询债券发行信息
  //    /cashManagementReport/getLeverageRatio
  //    getFindAll:query => api.post(`${config.interfaces.type5}portfolioserver/cashManagementReport/findAll`, query),
  // 不可投范围
  getUnControllableRange: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/uncontrollableRange`, query),
  // 可投范围
  getControllableRange: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/controllableRange`, query),
  // 集中度
  getInvestmentConcentration: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getInvestmentConcentration`, query),

  getInvestmentConcentrationOne: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getInvestmentConcentrationOne`, query),
  getInvestmentConcentrationTwo: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getInvestmentConcentrationTwo`, query),
  getInvestmentConcentrationThree: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getInvestmentConcentrationThree`, query),
  getInvestmentConcentrationFour: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getInvestmentConcentrationFour`, query),
  getInvestmentConcentrationFive: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getInvestmentConcentrationFive`, query),

  // 流动性
  getFluidity: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/fluidity`, query),
  // 杠杆率控制
  getLeverageRatio: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getLeverageRatio`, query),
  // 组合久期
  getByPortfolioDay: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/getByPortfolioDay`, query),
  // 集中度
  findAll: (query) => api.post(`${config.interfaces.type5}portfolio-server/cashManagementReport/findAll`, query),
  // 查询现金报告唯一接口
  queryReport: (query) => api.post(`${config.interfaces.type5}maat-report/v1/cashManagementReport/getCashManagementReport`, query),
  // 查询个券偏离度接口
  getDeviationControl: (query) => api.post(`${config.interfaces.type5}maat-report/v1/cashManagementReport/getDeviationControl`, query),
  // 查询租户是否有个券偏离度条目
  getConfigured: (query) => api.get(`${config.interfaces.type5}maat-report/v1/cashManagementReport/getConfigured`, query),
  // 查看说明
  quereyEditInfo: (query) => api.get(`${config.interfaces.type5}maat-report/v1/cashManagementReport/viewInstructions`, query),
  // 保存编辑说明
  saveDescription: (query) => api.post(`${config.interfaces.type5}maat-report/v1/cashManagementReport/editDescription`, query),
};
